package ltd.jdsoft.cute.scheduler.extension;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import ltd.jdsoft.cute.scheduler.spi.Scheduler;

public class CronTypeScheduler2 implements Scheduler {

  private static Logger logger = LoggerFactory.getLogger(CronTypeScheduler2.class);

  @Override
  public String getExpression() {
    return "0/4 * * * * *";
  }

  @Override
  public void process() {
    logger.debug("CronTypeScheduler2 start...");
    try {
      Thread.sleep(10000);
    } catch (InterruptedException e) {// ignore
    }
    logger.debug("CronTypeScheduler2 end...");
  }
}
